import 'package:flutter/material.dart';

class ImageUtil {
  static String getImagePath(String name, {String format = 'png'}) {
    return 'assets/images/$name.$format';
  }

  static Image getImage(String name, {String format = 'png'}) {
    return Image.asset(getImagePath(name, format: format));
  }

  static ImageProvider getAssetImage(String name, {String format = 'png'}) {
    return AssetImage(getImagePath(name, format: format));
  }
}
